/*
 * new.c
 *
 *  Created on: Nov 1, 2014
 *      Author: Ahmed Kamel
 */

#include "new.h"

void * new (const void * type, ...)
{
	const size_t size = * (const size_t *) type;
	void * p = calloc(1, size);

	assert(p);
	return p;
}

void delete (void * _item)
{
	free(_item);
}
